﻿<UserControl 
    x:Class="ImageCropper.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:local="clr-namespace:ImageCropper"
    mc:Ignorable="d"
    d:DesignHeight="345" d:DesignWidth="470">
    <Grid>
        <local:ImageTiler ImageSource="checkered.png"/>
        <local:CroppingSurface x:Name="_croppingSurface"/>        
        <Slider Width="150" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="10" Minimum="0.1" Maximum="2" Orientation="Horizontal" Value="{Binding Zoom, ElementName=_croppingSurface, Mode=TwoWay}"/>
    </Grid>
</UserControl>
